package com.sun.service.impl;

import com.sun.dao.*;
import com.sun.service.ChartsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service
@Transactional
public class ChartsServiceImpl implements ChartsService {

    @Autowired
    private ChartsMapper chartsMapper;

    public List<Map> yearOfMoneyCharts() {
        return chartsMapper.yearOfMoneyCharts();
    }

    public List<Double> monthOfMoneyCharts(String year) {
        return chartsMapper.monthOfMoneyCharts(year);
    }
}
